﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:XDCCManager_Converters="clr-namespace:XDCCManager.Converters"
	xmlns:XDCCManager_Controls="clr-namespace:XDCCManager.Controls"
	mc:Ignorable="d"
	x:Class="XDCCManager.Popups.ConnectionProgress"
	x:Name="UserControl">

	<UserControl.Resources>
		<XDCCManager_Converters:BooleanReverseConverter x:Key="BooleanReverseConverter"/>
	</UserControl.Resources>

	<StackPanel x:Name="LayoutRoot" Background="{Binding Background, ElementName=UserControl}">
		<XDCCManager_Controls:LoadingAnimation x:Name="loading" />
		<TextBlock Text="{Binding Message, ElementName=UserControl}" HorizontalAlignment="Center" TextWrapping="Wrap" MaxWidth="{Binding ActualWidth, ElementName=UserControl}"/>
		<Button Content="Cancel" HorizontalAlignment="Center" Click="cancel_Click" IsEnabled="{Binding Canceled, Converter={StaticResource BooleanReverseConverter}, ElementName=UserControl}"/>
	</StackPanel>
</UserControl>